
.circle-item {
  border-radius: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  position: relative;
  width: 120px;
  height: 46px;

  .normal-bg {
    width: 120px;
    position: absolute;
    left: 0;
    top: -6px;
    z-index: -1;
  }

  .climate-mode {
    width: 100%;
    border-radius: 4px 4px 4px 4px;
  }

  .anchor-bottom, .anchor-top {
    z-index: -1;
  }
  .anchor-bottom {
    background: #0a62a9;
  }
}

.anchor-bottom, .anchor-top {
  display: block;
  position: absolute;
  width: 14px;
  height: 14px;
  left: 50%;
  margin-left: -6px;
  border-radius: 100%;
  z-index: 2;
}

.anchor-bottom {
  bottom: -7px;
}

.anchor-top {
  top: -7px;
}

.upstream {
  .anchor-bottom, .anchor-top {
    background: #1665d8;
  }
  &.group-item .item-content, &.vertical-item .item-content, &.group-item .item-content .sub-companys {
    border-color: #1665d8;
    background: #e7effb;
    .sub-companys {
      border-color: #1665d8;
      background: #f7fafe;
    }
    .item-content-box {
      color: #3878FF;
    }
  }
}

.midstream {
  .anchor-bottom, .anchor-top {
    background: #6759f1;
  }
  &.group-item .item-content, &.vertical-item .item-content, &.group-item .item-content .sub-companys {
    border-color: #6759f0;
    background: #f0eefe;
    .sub-companys {
      border-color: #6759f0;
      background: #faf9ff;
    }
    .item-content-box {
      color: #6A68CE;
    }
  }
}

.downstream {
  .anchor-bottom, .anchor-top {
    background: #00a190;
  }
  &.group-item .item-content, &.vertical-item .item-content {
    border-color: #00a08f;
    background: #e5f5f4;
    .sub-companys {
      border-color: #00a08f;
      background: #f4fbfa;
    }
    .item-content-box {
      color: #1394BD;
    }
  }
}

.group-item {
  width: 150px;
  height: 46px;
  position: relative;
  z-index: 1;
  cursor: pointer;
  .item-content {
    min-width: 140px;
    height: 46px;
    border: solid 1px;
    border-radius: 5px;
    z-index: 2;
    .item-content-box {
      width: 100%;
      height: 46px;
      display: inline-flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      font-weight: 500;
      font-size: 14px;
      color: rgba(39, 39, 39, 0.8);
    }
    .climate-info {
      font-size: 12px;
      display: inline-flex;
      align-items: center;
      color: #1f2d3d;
      margin-right: 5px;
    }
  }
  .anchor-bottom, .anchor-top {
    z-index: -1;
  }
  &.detail-mode {
    width: 300px;
    height: auto;
    min-height: 58px;
    .item-content {
      width: 300px;
      height: auto;
      min-height: 58px;
      .sub-companys {
        border-top: solid 1px;
        padding: 20px 10px 15px;
        display: flex;
        flex-wrap: wrap;
        .company-item {
          width: 25%;
          text-align: center;
          font-size: 14px;
          line-height: 22px;
          &:hover {
            color: #3a75ff;
          }
        }
      }
    }
  }
}

.vertical-item {
  cursor: pointer;
  width: 50px;
  height: 150px;
  position: relative;
  z-index: 1;
  .item-content {
    width: 50px;
    height: 150px;
    border: solid 1px;
    border-radius: 5px;
    z-index: 2;
    .item-content-box {
      width: 50px;
      height: 150px;
      display: inline-flex;
      justify-content: flex-start;
      align-items: center;
      font-weight: 500;
      font-size: 14px;
      color: rgba(39, 39, 39, 0.8);
      writing-mode:vertical-rl;
      padding: 12px 0;
    }
    &:has(.climate-info) {
      padding-top: 12px;
    }
    //padding-top: 20px;
    .climate-info {
      font-size: 12px;
      display: inline-flex;
      align-items: center;
      color: #1f2d3d;
      margin-bottom: 5px;
      writing-mode: initial;
      position: absolute;
      top: 6px;
    }
    .tag-box {
      min-width: 28px;
      height: 20px;
      margin-bottom: 8px;
      border-radius: 2px;
      border: solid 1px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 0 6px;
      writing-mode: horizontal-tb;
      font-size: 12px;
      margin-top: -2px;
      &.tag-high {
        border-color: #E72832;
        background-color: #FFF3F4;
        color: #E72832;
      }
      &.tag-higher {
        border-color: #FF8A21;
        background-color: #FFF7F0;
        color: #FF8A21;
      }
      &.tag-gaoFei {
        border-color: #6A68CE;
        background-color: #F7F7FF;
        color: #6A68CE;
      }
    }
  }
  .anchor-bottom, .anchor-top {
    z-index: -1;
  }
  &.detail-mode {
    width: 130px;
    height: auto;
    min-height: 58px;
    .item-content {
      width: 100%;
      height: auto;
      .item-content-box {
        width: 100%;
        height: 58px;
        writing-mode:inherit;
        justify-content: center;
      }
      .sub-companys {
        border-top: solid 1px;
        padding: 20px 10px 15px;
        display: flex;
        flex-wrap: wrap;
        .company-item {
          width: 100%;
          text-align: center;
          font-size: 14px;
          line-height: 22px;
          &:hover {
            color: #3a75ff;
          }
        }
      }
    }
  }
}


.tree-wrapper {
  width: 100%;
  height: inherit;
  background: #fff;
  border-radius: 2px;
  padding: 10px;
  display: flex;

  .border-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 2px;
    border: solid 1px #eaeaea;

    .industry-list {
      width: 200px;
      height: 100%;
      padding: 10px 7px 10px 10px;
      flex-direction: column;
      align-items: flex-start;
      overflow: hidden;

      .industry-filter {
        margin-bottom: 10px;
        width: calc(100% - 3px);
      }

      .list-wrapper {
        overflow-y: scroll;
        height: calc(100% - 38px);
        width: 100%;

        .list-item {
          display: inline-flex;
          flex-direction: column;
          width: 100%;
          height: 60px;
          border-right: solid 2px #f9fafcf5;
          padding: 13px 0 13px 32px;
          background: #f9fafcf5;
          align-items: flex-start;
          justify-content: center;
          cursor: pointer;

          p {
            font-size: 14px;

            &:nth-child(2) {
              font-size: 12px;
              color: #B8BCC5;
              margin-top: 2px;
            }
          }

          &:hover, &.active {
            background: #3878ff1a;
            border-color: #3878ff;

            p:nth-child(1) {
              color: #3878FF;
            }
          }
        }

        .empty {
          width: 100%;
          font-size: 12px;
          text-align: center;
          margin-top: 20px;
        }
      }
    }

    .industry-detail {
      width: calc(100% - 200px);
      flex: 1;
      height: 100%;
      border-left: solid 1px #eaeaea;

      .tool-bar {
        width: 100%;
        height: 55px;
        padding: 10px 20px 5px;
        display: inline-flex;
        align-items: center;
        justify-content: space-between;

        .el-icon-question {
          font-size: 18px;
          margin-right: 20px;
        }

        .el-select {
          margin-right: 20px;
        }
        .climate-example {
          display: flex;
          justify-content: flex-end;
          align-items: center;
          .color-example {
            display: flex;
            align-items: center;
            .example-item {
              margin-left: 25px;
              display: flex;
              align-items: center;
              color: #00a08f;
              span {
                display: inline-block;
                width: 16px;
                height: 16px;
                margin-right: 10px;
              }
            }
          }
          .up-down {
            display: flex;
            align-items: center;
            margin-left: 100px;
            .example-arrow {
              color: #00a08f;
              margin-right: 20px;
              &:last-child(1) {
                margin-right: 0;
              }
            }
          }
        }
      }

      .chart-content {
        width: 100%;
        height: calc(100% - 55px);
        background: #f9fafcf5;
        overflow: scroll;
        padding: 5px;

        .current-industry {
          display: flex;
          flex-direction: column;
          align-items: center;
          justify-content: center;
          font-size: 16px;
          font-weight: 500;
          color: #0057E6;
          height: 46px;
          .climate-info {
            font-size: 14px;
            width: 100%;
            display: flex;
            flex-direction: row;
            justify-content: center;
            align-items: center;
            color: #1f2d3d;
          }
        }
        .climate-mode {
          height: 46px;
          border: 1px solid;
          //.upstream .chain-item{
          //  background: #1665d8;
          //}
          //
          //.midstream .chain-item{
          //  background: #6759f1;
          //}
          //
          //.downstream .chain-item{
          //  background: #00a190;
          //}
        }

        .chain-item {
          //width: 80px;
          //height: 80px;
          //border-radius: 100%;
          //font-weight: 500;
          //font-size: 18px;
          //color: #FFFFFF;
          display: flex;
          flex-direction: column;
          align-items: center;
          justify-content: center;
          font-size: 16px;
          font-weight: 500;
          color: #0057E6;
          height: 46px;
          .climate-info {
            width: 100%;
            font-size: 12px;
            display: flex;
            //flex-direction: column;
            justify-content: center;
            align-items: center;
            color: #1f2d3d;
            margin-bottom: 5px;
          }
        }
      }
    }
  }
}

.el-icon-caret-top {
  color: #00a090;
}
.el-icon-caret-bottom {
  color: #ff0000;
}

